import styled  from 'styled-components';
export const HomeWrapper = styled.div`
  overflow: hidden;
   width: 960px;
   margin: 0 auto;
`;

export const HomeLeft = styled.div`
  float: left;
  margin-left: 15px;
  padding-top: 30px;
  width: 625px;
  .banner-img{
    width: 625px;
    height: 270px;
  }
`;


export const HomeRight = styled.div`
  width: 280px;
  float: right;
`;

export const TopicWrapper = styled.div`
   overflow: hidden;
   margin: 20px 0 10px 0;
   width: 625px;
   margin-left: -18px;
   border-bottom: 1px solid #cdcdcd;
`;

export const TopicItem = styled.div`
    float: left;
    height: 32px;
    line-height: 32px;
    margin-left: 18px;
    margin-bottom: 18px;
    padding-right: 10px;
    background: #f7f7f7;
    font-size: 14px;
    color: #000;
    border-radius: 4px;
    .topic-pic {
      display: block;
      float: left;
      width: 32px;
      height: 32px;
      background: red;
      margin-right: 10px;


    }
`;


export const ArticleItem = styled.div`
  overflow: hidden;
  padding: 15px 0px;
  border-bottom: 1px solid #cdcdcd;
  .pic {
    display:block;
    float: right;
    width: 125px;
    height: 100px;
    border-radius: 10px;

  }
`;

export const ArticleInfo = styled.div`
 float: left;
 width: 500px;
 .title {
   line-height: 27px;
   font-size: 18px;
   font-weight: bold;
   color: #333;
 }
 .desc {
   line-height: 24px;
   font-size: 13px;
   color: #999;
 }
`;

export const RecommendWrapper = styled.div`
   margin: 30px 0;
   width: 280px;
`;

export const RecommendItem = styled.div`
  height: 50px;
  width: 280px;
  background: url(${(props) => props.imgUrl});
  background-size: contain;
`;

export const LoadMore = styled.div`
  width: 100%;
  height: 40px;
  background: #a5a5a5;
  margin: 30px 0;
  text-align: center;
  line-height: 40px;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
`;

export const BackTop = styled.div`
  position: fixed;
  right: 100px;
  bottom: 100px;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  border: 1px solid #ccc;
  font-size: 14px;
`;
